package com.bjc2.decorator;

/**
 * 抽象构建角色  快餐类
 */
public abstract class FastFood {

    //价格
    private float price;

    //描述
    private String desc;

    public FastFood() {
    }

    public FastFood(float price, String desc) {
        this.price = price;
        this.desc = desc;
    }

    public float getPrice() {
        return price;
    }

    public void setPrice(float price) {
        this.price = price;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    @Override
    public String toString() {
        return "FastFood{" +
                "price=" + price +
                ", desc='" + desc + '\'' +
                '}';
    }

    public abstract float cost();
}
